package org.totoro.servlet.methodpath.focus;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.lang.reflect.Method;

/**
 * @author TOTORO
 * @date 2021/5/28 15:01
 */
public interface MpMethod {
    String POST = "POST";
    String GET = "GET";


    Method getPathMethod(HttpServletRequest request, HttpServletResponse response) throws IOException;

    String getRequestMethod(HttpServletRequest request, HttpServletResponse response) throws IOException;

    void execution(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException;
}
